<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>show8</title>
    <script th:inline="javascript">
        let user = /*[[${user}]]*/ {};
        let strs = /*[[${strs}]]*/ [];
        let age = /*[[${age}]]*/ 18;

        console.log(user);
        console.log(strs);
        console.log(age);


    </script>
</head>
<body>
    <ul>
        <li th:each="xxx : ${strs}">
            <span th:text="${xxx}"></span>
        </li>
    </ul>
</body>
</html>